﻿using System.IO;
using System.Xml;


/// <summary>
/// wrapper
/// been generated to serialize objects without namespace
/// </summary>
public class XmlDictionaryWriterWrapper : XmlDictionaryWriter
{
    private XmlDictionaryWriter Writer;
    public XmlDictionaryWriterWrapper(XmlDictionaryWriter writer)        
    {
        Writer = writer;
    }
    public override void WriteXmlnsAttribute(string prefix, XmlDictionaryString namespaceUri)
    {
        var b = prefix;// base.WriteXmlnsAttribute(prefix, namespaceUri);
    }

    public override void WriteXmlnsAttribute(string prefix, string namespaceUri)
    {
        var b = prefix;// base.WriteXmlnsAttribute(prefix, namespaceUri);
    }

    public override void Close()
    {
        Writer.Close();
    }

    public override void Flush()
    {
        Writer.Flush();
    }

    public override string LookupPrefix(string ns)
    {
        var r = Writer.LookupPrefix(null);
        return r;
    }

    public override void WriteBase64(byte[] buffer, int index, int count)
    {
        Writer.WriteBase64(buffer, index, count);
    }

    public override void WriteCData(string text)
    {
        Writer.WriteCData(text);
    }

    public override void WriteCharEntity(char ch)
    {
        Writer.WriteCharEntity(ch);
    }

    public override void WriteChars(char[] buffer, int index, int count)
    {
        Writer.WriteChars(buffer,index,count);
    }

    public override void WriteComment(string text)
    {
        //Writer.WriteComment(text);
    }

    public override void WriteDocType(string name, string pubid, string sysid, string subset)
    {
        //Writer.WriteDocType(name, pubid, sysid, subset);
    }

    public override void WriteEndAttribute()
    {
        Writer.WriteEndAttribute();
    }

    public override void WriteEndDocument()
    {
        Writer.WriteEndDocument();
    }

    public override void WriteEndElement()
    {
        Writer.WriteEndElement();
    }

    public override void WriteEntityRef(string name)
    {
        Writer.WriteEntityRef(name);
    }

    public override void WriteFullEndElement()
    {
        Writer.WriteFullEndElement();
    }

    public override void WriteProcessingInstruction(string name, string text)
    {
        Writer.WriteProcessingInstruction(name, text);
    }

    public override void WriteRaw(string data)
    {
        Writer.WriteRaw(data);
    }

    public override void WriteRaw(char[] buffer, int index, int count)
    {
        Writer.WriteRaw(buffer, index, count);
    }

    public override void WriteStartAttribute(string prefix, string localName, string ns)
    {
        Writer.WriteStartAttribute(prefix, localName, null);
    }

    public override void WriteStartDocument(bool standalone)
    {
        Writer.WriteStartDocument(standalone);
    }

    public override void WriteStartDocument()
    {
        Writer.WriteStartDocument();
    }

    public override void WriteStartElement(string prefix, string localName, string ns)
    {
        Writer.WriteStartElement(prefix, localName, null);
    }

    public override WriteState WriteState
    {
        get { return Writer.WriteState; }
    }

    public override void WriteString(string text)
    {
        Writer.WriteString(text);
    }

    public override void WriteSurrogateCharEntity(char lowChar, char highChar)
    {
        Writer.WriteSurrogateCharEntity(lowChar,highChar);
    }

    public override void WriteWhitespace(string ws)
    {
        Writer.WriteWhitespace(ws);
    }
}